import request from '@/utils/request'

// 查询耗材包与耗材对照列表
export function listPackagessupplies(query) {
  return request({
    url: '/service/packagessupplies/list',
    method: 'get',
    params: query
  })
}

// 查询耗材包与耗材对照详细
export function getPackagessupplies(packagessuppliesId) {
  return request({
    url: '/service/packagessupplies/' + packagessuppliesId,
    method: 'get'
  })
}

// 新增耗材包与耗材对照
export function addPackagessupplies(data) {
  return request({
    url: '/service/packagessupplies',
    method: 'post',
    data: data
  })
}

// 修改耗材包与耗材对照
export function updatePackagessupplies(data) {
  return request({
    url: '/service/packagessupplies',
    method: 'put',
    data: data
  })
}

// 删除耗材包与耗材对照
export function delPackagessupplies(packagessuppliesId) {
  return request({
    url: '/service/packagessupplies/' + packagessuppliesId,
    method: 'delete'
  })
}
